import { consts } from "@/pages/auditSampling/consts";
import { DxElement } from "devextreme/core/element";
import { Column, ColumnCellTemplateData, ColumnCustomizeTextArg } from "devextreme/ui/data_grid";

export const batReplaceWpDataListColumns: Column[] = [
    {
        dataField: 'dgsyh',
        caption: '索引号',
        width: 80,
    },
    {
        dataField: 'dgmc',
        caption: '底稿名称',
        //  width: 200,
        headerFilter: { width: 400, allowSearch: true }
    },
    {
        dataField: 'editUser',
        caption: '编辑人',
        width: 80,
    }, {
        dataField: 'editDate',
        caption: '编辑时间',
        width: 80,
    }
]
export const batReplaceFileDataListColumns: Column[] = [
    {
        dataField: 'orderIndex',
        caption: consts.xh,
        alignment: 'center',
        width: 60,
        allowEditing: false,
        allowFiltering: false,
        allowHeaderFiltering: false,
    },
    {
        dataField: 'fileName',
        caption: '文件名称',
        alignment: 'left',
        // width: 220,
        allowEditing: false,
        /*allowFiltering: true,
        allowHeaderFiltering: true, */
    },
    {
        dataField: 'dgsyh',
        caption: '索引号',
        alignment: 'left',
        width: 80,
        allowEditing: false,
        allowFiltering: false,
        allowHeaderFiltering: false,
    }, {
        dataField: 'dgmc',
        caption: '底稿名称',
        alignment: 'left',
        allowEditing: false,
        allowFiltering: true,
        //  width: 200,
    },
    {
        dataField: 'enabled',
        caption: '是否替换',
        width: 80,
        allowEditing: true,
        allowFiltering: false,
        allowHeaderFiltering: false,
    }, {
        dataField: 'result',
        caption: '结果',
        alignment: 'left',
        width: 100,
        allowEditing: false,
        allowFiltering: false,
        allowHeaderFiltering: false,
    },
]

